.class Lcom/netease/newsreader/activity/SelectCity$1;
.super Landroid/os/Handler;
.source "SelectCity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/SelectCity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/SelectCity;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/SelectCity;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/SelectCity$1;->this$0:Lcom/netease/newsreader/activity/SelectCity;

    .line 450
    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 9
    .parameter "msg"

    .prologue
    const/4 v8, 0x0

    .line 454
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    .line 455
    iget v6, p1, Landroid/os/Message;->what:I

    packed-switch v6, :pswitch_data_0

    .line 497
    :goto_0
    return-void

    .line 457
    :pswitch_0
    iget-object v3, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v3, Ljava/util/List;

    .line 458
    .local v3, list:Ljava/util/List;,"Ljava/util/List<Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;>;"
    iget-object v6, p0, Lcom/netease/newsreader/activity/SelectCity$1;->this$0:Lcom/netease/newsreader/activity/SelectCity;

    invoke-static {v6}, Lcom/netease/newsreader/activity/SelectCity;->access$0(Lcom/netease/newsreader/activity/SelectCity;)Ljava/util/List;

    move-result-object v6

    invoke-interface {v6}, Ljava/util/List;->clear()V

    .line 459
    iget-object v6, p0, Lcom/netease/newsreader/activity/SelectCity$1;->this$0:Lcom/netease/newsreader/activity/SelectCity;

    invoke-static {v6}, Lcom/netease/newsreader/activity/SelectCity;->access$0(Lcom/netease/newsreader/activity/SelectCity;)Ljava/util/List;

    move-result-object v6

    invoke-interface {v6, v3}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    goto :goto_0

    .line 463
    .end local v3           #list:Ljava/util/List;,"Ljava/util/List<Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;>;"
    :pswitch_1
    iget-object v2, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v2, Ljava/util/List;

    .line 464
    .local v2, list:Ljava/util/List;,"Ljava/util/List<Lcom/netease/newsreader/util/Pair<Ljava/lang/String;Ljava/util/List<Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;>;>;>;"
    iget-object v6, p0, Lcom/netease/newsreader/activity/SelectCity$1;->this$0:Lcom/netease/newsreader/activity/SelectCity;

    invoke-static {v6}, Lcom/netease/newsreader/activity/SelectCity;->access$1(Lcom/netease/newsreader/activity/SelectCity;)Ljava/util/List;

    move-result-object v6

    invoke-interface {v6, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/netease/newsreader/util/Pair;

    .line 465
    .local v1, ipQueryGroup:Lcom/netease/newsreader/util/Pair;,"Lcom/netease/newsreader/util/Pair<Ljava/lang/String;Ljava/util/List<Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;>;>;"
    iget-object v6, p0, Lcom/netease/newsreader/activity/SelectCity$1;->this$0:Lcom/netease/newsreader/activity/SelectCity;

    invoke-static {v6}, Lcom/netease/newsreader/activity/SelectCity;->access$1(Lcom/netease/newsreader/activity/SelectCity;)Ljava/util/List;

    move-result-object v6

    invoke-interface {v6}, Ljava/util/List;->clear()V

    .line 466
    iget-object v6, p0, Lcom/netease/newsreader/activity/SelectCity$1;->this$0:Lcom/netease/newsreader/activity/SelectCity;

    invoke-static {v6}, Lcom/netease/newsreader/activity/SelectCity;->access$1(Lcom/netease/newsreader/activity/SelectCity;)Ljava/util/List;

    move-result-object v6

    invoke-interface {v6, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 467
    iget-object v6, p0, Lcom/netease/newsreader/activity/SelectCity$1;->this$0:Lcom/netease/newsreader/activity/SelectCity;

    invoke-static {v6}, Lcom/netease/newsreader/activity/SelectCity;->access$1(Lcom/netease/newsreader/activity/SelectCity;)Ljava/util/List;

    move-result-object v6

    invoke-interface {v6, v2}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 468
    iget-object v6, p0, Lcom/netease/newsreader/activity/SelectCity$1;->this$0:Lcom/netease/newsreader/activity/SelectCity;

    invoke-static {v6}, Lcom/netease/newsreader/activity/SelectCity;->access$2(Lcom/netease/newsreader/activity/SelectCity;)Lcom/netease/newsreader/adapter/CityGroupAdapter;

    move-result-object v6

    invoke-virtual {v6}, Lcom/netease/newsreader/adapter/CityGroupAdapter;->notifyDataSetChanged()V

    .line 469
    iget-object v6, p0, Lcom/netease/newsreader/activity/SelectCity$1;->this$0:Lcom/netease/newsreader/activity/SelectCity;

    invoke-static {v6}, Lcom/netease/newsreader/activity/SelectCity;->access$3(Lcom/netease/newsreader/activity/SelectCity;)Landroid/view/View;

    move-result-object v6

    const/16 v7, 0x8

    invoke-virtual {v6, v7}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0

    .line 473
    .end local v1           #ipQueryGroup:Lcom/netease/newsreader/util/Pair;,"Lcom/netease/newsreader/util/Pair<Ljava/lang/String;Ljava/util/List<Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;>;>;"
    .end local v2           #list:Ljava/util/List;,"Ljava/util/List<Lcom/netease/newsreader/util/Pair<Ljava/lang/String;Ljava/util/List<Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;>;>;>;"
    :pswitch_2
    iget-object v4, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v4, Ljava/util/Map;

    .line 474
    .local v4, map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    if-nez v4, :cond_0

    .line 475
    new-instance v4, Ljava/util/HashMap;

    .end local v4           #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    invoke-direct {v4}, Ljava/util/HashMap;-><init>()V

    .line 476
    .restart local v4       #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v6, "ipquery_fail"

    const/4 v7, 0x1

    invoke-static {v7}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v7

    invoke-interface {v4, v6, v7}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 478
    :cond_0
    iget-object v6, p0, Lcom/netease/newsreader/activity/SelectCity$1;->this$0:Lcom/netease/newsreader/activity/SelectCity;

    invoke-static {v6}, Lcom/netease/newsreader/activity/SelectCity;->access$1(Lcom/netease/newsreader/activity/SelectCity;)Ljava/util/List;

    move-result-object v6

    invoke-interface {v6, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lcom/netease/newsreader/util/Pair;

    .line 479
    .local v5, pair:Lcom/netease/newsreader/util/Pair;,"Lcom/netease/newsreader/util/Pair<Ljava/lang/String;Ljava/util/List<Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;>;>;"
    iget-object v6, v5, Lcom/netease/newsreader/util/Pair;->second:Ljava/lang/Object;

    check-cast v6, Ljava/util/List;

    invoke-interface {v6}, Ljava/util/List;->clear()V

    .line 480
    iget-object v6, v5, Lcom/netease/newsreader/util/Pair;->second:Ljava/lang/Object;

    check-cast v6, Ljava/util/List;

    invoke-interface {v6, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 481
    iget-object v6, p0, Lcom/netease/newsreader/activity/SelectCity$1;->this$0:Lcom/netease/newsreader/activity/SelectCity;

    invoke-static {v6}, Lcom/netease/newsreader/activity/SelectCity;->access$2(Lcom/netease/newsreader/activity/SelectCity;)Lcom/netease/newsreader/adapter/CityGroupAdapter;

    move-result-object v6

    invoke-virtual {v6}, Lcom/netease/newsreader/adapter/CityGroupAdapter;->notifyDataSetChanged()V

    goto/16 :goto_0

    .line 485
    .end local v4           #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    .end local v5           #pair:Lcom/netease/newsreader/util/Pair;,"Lcom/netease/newsreader/util/Pair<Ljava/lang/String;Ljava/util/List<Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;>;>;"
    :pswitch_3
    iget-object v6, p0, Lcom/netease/newsreader/activity/SelectCity$1;->this$0:Lcom/netease/newsreader/activity/SelectCity;

    invoke-static {v6}, Lcom/netease/newsreader/activity/SelectCity;->access$4(Lcom/netease/newsreader/activity/SelectCity;)Lcom/netease/newsreader/adapter/CitySearchAdapter;

    move-result-object v6

    invoke-virtual {v6}, Lcom/netease/newsreader/adapter/CitySearchAdapter;->getFilterList()Ljava/util/List;

    move-result-object v0

    .line 486
    .local v0, filterList:Ljava/util/List;,"Ljava/util/List<Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;>;"
    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 487
    iget-object v3, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v3, Ljava/util/List;

    .line 488
    .restart local v3       #list:Ljava/util/List;,"Ljava/util/List<Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;>;"
    if-eqz v3, :cond_1

    .line 489
    invoke-interface {v0, v3}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 491
    :cond_1
    iget-object v6, p0, Lcom/netease/newsreader/activity/SelectCity$1;->this$0:Lcom/netease/newsreader/activity/SelectCity;

    invoke-static {v6}, Lcom/netease/newsreader/activity/SelectCity;->access$4(Lcom/netease/newsreader/activity/SelectCity;)Lcom/netease/newsreader/adapter/CitySearchAdapter;

    move-result-object v6

    invoke-virtual {v6}, Lcom/netease/newsreader/adapter/CitySearchAdapter;->notifyDataSetChanged()V

    goto/16 :goto_0

    .line 455
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method
